package com.cos.consumer.fallback;

import com.cos.common.entity.Student;
import com.cos.consumer.feign.SupplierFeignClient;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author: COS
 * @time: 2022/4/28 16:38
 * @description: 这个类是作为 服务降级的类使用
 */
@Component
public class SupplierFeignClientFallBack implements SupplierFeignClient {
    @Override
    public String getData() {
        return "这个是服务降级 ,就是不给你用";
    }

    @Override
    public Student getStudentById(Integer id) {
        return null;
    }

    @Override
    public Student getStudent(Integer id, String name, String sex) {
        return null;
    }

    @Override
    public Student addStudent(Student student) {
        return null;
    }

    @Override
    public List<Student> getStuList() {
        return null;
    }
}
